package com.yt.dor.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yt.dor.models.dto.ViolationRecordDTO;
import com.yt.dor.models.vo.ViolationRecordVO;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * 违规表详情映射
 *
 * @author thekai
 * @Date 2025-10-28 16:38:28
 */
public interface ViolationRecordMapper extends BaseMapper<ViolationRecordDTO> {
    List<ViolationRecordVO>query();
    // 新增统计方法
    List<ViolationRecordVO> statistics(
            @Param("semester") Integer semester,
            @Param("roomId") Long roomId
    );
}
